package com.itmayiedu.service.impl;

import com.itmayiedu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

/**
 * Created by Devin on 2018/1/21.
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private JdbcTemplate jdbcTemplate;
    @Override
    public void createUser() {
        String sql = "INSERT INTO test.st_student (`id`, `name`, `setx`, `create_time`) VALUES (null, ?, ?, ?);";
        jdbcTemplate.update(sql,"小花","女","2018-01-12 21:38:58");
    }
}
